package com.endurance.service;

import java.util.Date;

/**
 * 依赖注入-有参构造方法
 */
public class DIService {

    private int num;

    private String name;

    private Date date;

    /**
     * 无参构造函数
     */
    public DIService() {

    }

    /**
     * 有参构造函数
     *
     * @param num
     * @param name
     * @param date
     */
    public DIService(int num, String name, Date date) {
        this.num = num;
        this.name = name;
        this.date = date;
    }

    @Override
    public String toString() {
        return "DIService{" +
                "num=" + num +
                ", name='" + name + '\'' +
                ", date=" + date +
                '}';
    }

}
